package org.noidler.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.Map;

@Data
public class AnyThing {
    @JsonProperty("_id")
    private String id;
    private String name;
    private String description;
    private String code;
    private String conditionType;
    private Map<String, Object> params;

    public void putParamItem(String key, Object value) {
        params.put(key, value);
    }
    public Object getParamItem(String key) {
       return params.get(key);
    }
}
